package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OrganizationMemberMapper;
import com.ruoyi.system.domain.OrganizationMember;
import com.ruoyi.system.service.IOrganizationMemberService;

/**
 * 组织成员Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-19
 */
@Service
public class OrganizationMemberServiceImpl implements IOrganizationMemberService 
{
    @Autowired
    private OrganizationMemberMapper organizationMemberMapper;

    /**
     * 查询组织成员
     * 
     * @param id 组织成员主键
     * @return 组织成员
     */
    @Override
    public OrganizationMember selectOrganizationMemberById(Long id)
    {
        return organizationMemberMapper.selectOrganizationMemberById(id);
    }

    /**
     * 查询组织成员列表
     * 
     * @param organizationMember 组织成员
     * @return 组织成员
     */
    @Override
    public List<OrganizationMember> selectOrganizationMemberList(OrganizationMember organizationMember)
    {
        return organizationMemberMapper.selectOrganizationMemberList(organizationMember);
    }

    /**
     * 新增组织成员
     * 
     * @param organizationMember 组织成员
     * @return 结果
     */
    @Override
    public int insertOrganizationMember(OrganizationMember organizationMember)
    {
        return organizationMemberMapper.insertOrganizationMember(organizationMember);
    }

    /**
     * 修改组织成员
     * 
     * @param organizationMember 组织成员
     * @return 结果
     */
    @Override
    public int updateOrganizationMember(OrganizationMember organizationMember)
    {
        return organizationMemberMapper.updateOrganizationMember(organizationMember);
    }

    /**
     * 批量删除组织成员
     * 
     * @param ids 需要删除的组织成员主键
     * @return 结果
     */
    @Override
    public int deleteOrganizationMemberByIds(Long[] ids)
    {
        return organizationMemberMapper.deleteOrganizationMemberByIds(ids);
    }

    /**
     * 删除组织成员信息
     * 
     * @param id 组织成员主键
     * @return 结果
     */
    @Override
    public int deleteOrganizationMemberById(Long id)
    {
        return organizationMemberMapper.deleteOrganizationMemberById(id);
    }
}
